package com.dayatang.hrm.compensation.utils;

import java.io.Serializable;

import org.springframework.beans.BeanUtils;

import com.dayatang.commons.domain.Value;
import com.dayatang.hrm.compensation.vo.RealValue;

public class ValueConvertor implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3242702254355075297L;

	public static Value conventToValue(RealValue realValue) {
		Value value = new Value();
		BeanUtils.copyProperties(realValue, value);
		return value;
	}

	public static RealValue conventToRealValue(Value value) {
		RealValue realValue = new RealValue();
		BeanUtils.copyProperties(value, realValue);
		return realValue;
	}

}
